package org.zfes.snowier.cloud.zbss.cms.topic.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.common.dao.params.ParamMap;
import org.zfes.snowier.cloud.zbss.cms.topic.model.CmsTopic;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface CmsTopicMapper extends BaseMapper<CmsTopic>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<CmsTopic> selectModelListPage(ParamMap params);
	
	List<CmsTopic> selectByParentId(@Param("parentId")Long parentId);
	
	List<CmsTopic> selectBySiteId(@Param("siteId")Long siteId);
	
	List<CmsTopic> selectByParentIdAndSiteId(@Param("parentId")Long parentId,@Param("siteId")Long siteId);
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);
}
